<template>
  <div class="payment">
    <div class="payment-top">
      <div class="payment-title">
        <div class="payment-text">缴费项目</div>
        <div class="payment-annal" @click="navigateToPaymentBulletin">缴费公告</div>
      </div>
    </div>
    <div class="payment-bottom">
      <div class="payment-list">
        <div class="payment-list-left">
          <div class="task-name">缴费事项：*****</div>
          <div class="executive">缴费状态：Executive</div>
        </div>
        <div class="payment-list-right">
          <div class="payment-list-right-btn" @click="navigateToPaymentDetail">查看详情</div>
        </div>
      </div>
      <div class="payment-list">
        <div class="payment-list-left">
          <div class="task-name">缴费事项：*****</div>
          <div class="executive">缴费状态：Executive</div>
        </div>
        <div class="payment-list-right">
          <div class="payment-list-right-btn" @click="navigateToPaymentDetail">查看详情</div>
        </div>
      </div>
      <div class="payment-list">
        <div class="payment-list-left">
          <div class="task-name">缴费事项：*****</div>
          <div class="executive">缴费状态：Executive</div>
        </div>
        <div class="payment-list-right">
          <div class="payment-list-right-btn" @click="navigateToPaymentDetail">查看详情</div>
        </div>
      </div>
      <div class="payment-list">
        <div class="payment-list-left">
          <div class="task-name">缴费事项：*****</div>
          <div class="executive">缴费状态：Executive</div>
        </div>
        <div class="payment-list-right">
          <div class="payment-list-right-btn" @click="navigateToPaymentDetail">查看详情</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  methods:{
    //跳转到缴费公告页面
    navigateToPaymentBulletin(){
      wx.navigateTo({
        url: '/pages/meMain/paymentBulletin/main'
      })
    },
    //跳转到缴费详情页面
    navigateToPaymentDetail(){
      wx.navigateTo({
        url: '/pages/paymentDetail/main'
      })
    },
  }
}
</script>

<style lang="scss" scoped>
  .payment{
    .payment-top{
      background-color: #fff;
      padding: 0 20rpx;
      .payment-title{
        display: flex;
        justify-content: space-between;
        .payment-text{
          height: 60rpx;
          line-height: 60rpx;
          font-size: 32rpx;
          font-weight: bold;
        }
        .payment-annal{
          color: rgb(110, 189, 235);
          width: 140rpx;
          height: 60rpx;
          font-size: 24rpx;
          line-height: 60rpx;
          text-align: center;
          border: 1px solid rgb(110, 189, 235);
          border-radius: 4px;
        }
      }
    }
    .payment-bottom{
      padding: 0 20rpx;
      background-color: #fff;
      margin-top: 18rpx;
      .payment-list{
        padding: 20rpx;
        display: flex;
        border: 1px solid rgb(110, 189, 235);
        border-radius: 6px;
        margin-bottom: 20rpx;
        .payment-list-left{
          flex: 3;
          div{
            height: 60rpx;
            line-height: 60rpx;
            font-size: 28rpx;
          }
          .task-name{
            font-size: 32rpx;
          }
        }
        .payment-list-right{
          flex: 1;
          display: flex;
          justify-content: flex-end;
          align-items: flex-end;
        }
        .payment-list-right-btn{
          width: 150rpx;
          height: 60rpx;
          line-height: 60rpx;
          font-size: 28rpx;
          text-align: center;
          color: #fff;
          background-color: rgb(110, 189, 235);
          border-radius: 6px;
        }
      }
    }
  }
</style>